﻿@{
    ViewData["Title"] = "Home Page";
}
@using Model
@model IEnumerable<User>
<div id="myCarousel" class="carousel slide" data-ride="carousel" data-interval="6000">
    <table>
        <tr>
            <th>编号</th>
            <th>姓名</th>
            <th>性别</th>
            <th>年龄</th>
        </tr>
        @foreach (var item in Model)
        {
            <tr>
                <td>@item.ID</td>
                <td>@item.UserName</td>
                <td>@(item.Sex == true ? "女" : "男")</td>
                <td>@item.Age</td>
            </tr>
        }
    </table>
</div>


